export default {
  deviewCodeName: 'panel_event',
  deviewId: 'fd9e4a3b31b6dac19e5f624090657084',
  appWFId: 'workflow',
  accUserMode: 3,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '面板_事件及调用',
  codeName: 'master_panel_event',
  appDataEntityId: 'web.master',
  appViewMsgGroupId: 'panel_event',
  viewLayoutPanel: {
    viewProxyMode: true,
    layoutMode: 'FLEX',
    layout: {
      layout: 'FLEX',
    },
    rootPanelItems: [
      {
        actionGroupExtractMode: 'ITEM',
        panelItems: [
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    actionGroupExtractMode: 'ITEM',
                    panelItems: [
                      {
                        rawItem: {
                          caption: '值变更事件',
                          halign: 'LEFT',
                          renderMode: 'PARAGRAPH',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          cssStyle: 'line-height: 32px;',
                          predefinedType: 'STATIC_LABEL',
                          rawItemWidth: 120,
                          id: 'static_label',
                        },
                        caption: '值变更事件',
                        contentWidth: 120,
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          halignSelf: 'RIGHT',
                          layout: 'FLEX',
                          spacingRight: 'INNERSMALL',
                          width: 120,
                          widthMode: 'PX',
                        },
                        width: 120,
                        showCaption: true,
                        id: 'static_label',
                      },
                      {
                        editor: {
                          editorType: 'TEXTBOX',
                          placeHolder: '值改变时触发事件',
                          predefinedType: 'FIELD_TEXTBOX',
                          valueType: 'SIMPLE',
                          editable: true,
                          id: 'field1',
                        },
                        viewFieldName: 'field1',
                        allowEmpty: true,
                        caption: '文本框',
                        itemStyle: 'DEFAULT',
                        itemType: 'FIELD',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        id: 'field1',
                      },
                    ],
                    layout: {
                      dir: 'row',
                      layout: 'FLEX',
                    },
                    dataRegionType: 'INHERIT',
                    caption: '容器',
                    itemStyle: 'DEFAULT',
                    itemType: 'CONTAINER',
                    layoutPos: {
                      colMD: 24,
                      layout: 'TABLE_24COL',
                      spacingBottom: 'INNERMEDIUM',
                    },
                    id: 'container3',
                  },
                ],
                layout: {
                  columnCount: 24,
                  layout: 'TABLE_24COL',
                },
                dataRegionType: 'INHERIT',
                caption: '面板容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  grow: 4,
                  shrink: 1,
                  layout: 'SIMPLEFLEX',
                },
                id: 'container',
              },
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    actionGroupExtractMode: 'ITEM',
                    panelItems: [
                      {
                        rawItem: {
                          caption: '聚焦事件',
                          halign: 'LEFT',
                          renderMode: 'PARAGRAPH',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          cssStyle: 'line-height: 32px;',
                          predefinedType: 'STATIC_LABEL',
                          rawItemWidth: 120,
                          id: 'static_label1',
                        },
                        caption: '聚焦事件',
                        contentWidth: 120,
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          halignSelf: 'RIGHT',
                          layout: 'FLEX',
                          spacingRight: 'INNERSMALL',
                          width: 120,
                          widthMode: 'PX',
                        },
                        width: 120,
                        showCaption: true,
                        id: 'static_label1',
                      },
                      {
                        editor: {
                          editorType: 'TEXTBOX',
                          placeHolder: '聚焦时触发事件',
                          predefinedType: 'FIELD_TEXTBOX',
                          valueType: 'SIMPLE',
                          editable: true,
                          id: 'field2',
                        },
                        viewFieldName: 'field2',
                        allowEmpty: true,
                        caption: '文本框',
                        itemStyle: 'DEFAULT',
                        itemType: 'FIELD',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        id: 'field2',
                      },
                    ],
                    layout: {
                      dir: 'row',
                      layout: 'FLEX',
                    },
                    dataRegionType: 'INHERIT',
                    caption: '容器',
                    itemStyle: 'DEFAULT',
                    itemType: 'CONTAINER',
                    layoutPos: {
                      colMD: 24,
                      layout: 'TABLE_24COL',
                      spacingBottom: 'INNERMEDIUM',
                    },
                    id: 'container4',
                  },
                ],
                layout: {
                  columnCount: 24,
                  layout: 'TABLE_24COL',
                },
                dataRegionType: 'INHERIT',
                caption: '面板容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  grow: 4,
                  shrink: 1,
                  layout: 'SIMPLEFLEX',
                },
                id: 'container1',
              },
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    actionGroupExtractMode: 'ITEM',
                    panelItems: [
                      {
                        rawItem: {
                          caption: '失焦事件',
                          halign: 'LEFT',
                          renderMode: 'PARAGRAPH',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          cssStyle: 'line-height: 32px;',
                          predefinedType: 'STATIC_LABEL',
                          rawItemWidth: 120,
                          id: 'static_label2',
                        },
                        caption: '失焦事件',
                        contentWidth: 120,
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          halignSelf: 'RIGHT',
                          layout: 'FLEX',
                          spacingRight: 'INNERSMALL',
                          width: 120,
                          widthMode: 'PX',
                        },
                        width: 120,
                        showCaption: true,
                        id: 'static_label2',
                      },
                      {
                        editor: {
                          editorType: 'TEXTBOX',
                          placeHolder: '失焦时触发事件',
                          predefinedType: 'FIELD_TEXTBOX',
                          valueType: 'SIMPLE',
                          editable: true,
                          id: 'fleld3',
                        },
                        viewFieldName: 'field3',
                        allowEmpty: true,
                        caption: '文本框',
                        itemStyle: 'DEFAULT',
                        itemType: 'FIELD',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        id: 'fleld3',
                      },
                    ],
                    layout: {
                      dir: 'row',
                      layout: 'FLEX',
                    },
                    dataRegionType: 'INHERIT',
                    caption: '容器',
                    itemStyle: 'DEFAULT',
                    itemType: 'CONTAINER',
                    layoutPos: {
                      colMD: 24,
                      layout: 'TABLE_24COL',
                      spacingBottom: 'INNERMEDIUM',
                    },
                    id: 'container5',
                  },
                ],
                layout: {
                  columnCount: 24,
                  layout: 'TABLE_24COL',
                },
                dataRegionType: 'INHERIT',
                caption: '面板容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  grow: 4,
                  shrink: 1,
                  layout: 'SIMPLEFLEX',
                },
                id: 'container2',
              },
            ],
            predefinedType: 'CONTAINER_GRID',
            layout: {
              layout: 'SIMPLEFLEX',
            },
            dataRegionType: 'INHERIT',
            caption: '栅格容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              shrink: 1,
              layout: 'FLEX',
            },
            id: 'container_grid',
          },
        ],
        layout: {
          layout: 'FLEX',
        },
        dataRegionType: 'INHERIT',
        caption: '容器',
        itemStyle: 'DEFAULT',
        itemType: 'CONTAINER',
        layoutPos: {
          shrink: 1,
          layout: 'FLEX',
        },
        id: 'container6',
      },
      {
        actionGroupExtractMode: 'ITEM',
        panelItems: [
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    rawItem: {
                      caption: '回车事件',
                      halign: 'LEFT',
                      renderMode: 'PARAGRAPH',
                      valign: 'MIDDLE',
                      wrapMode: 'NOWRAP',
                      contentType: 'RAW',
                      cssStyle: 'line-height: 32px;',
                      predefinedType: 'STATIC_LABEL',
                      rawItemWidth: 120,
                      id: 'static_label9',
                    },
                    caption: '回车事件',
                    contentWidth: 120,
                    itemStyle: 'DEFAULT',
                    itemType: 'RAWITEM',
                    layoutPos: {
                      shrink: 1,
                      halignSelf: 'RIGHT',
                      layout: 'FLEX',
                      spacingRight: 'INNERSMALL',
                      width: 120,
                      widthMode: 'PX',
                    },
                    width: 120,
                    showCaption: true,
                    id: 'static_label9',
                  },
                  {
                    editor: {
                      editorType: 'TEXTBOX',
                      placeHolder: '点击回车时触发事件',
                      predefinedType: 'FIELD_TEXTBOX',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'field4',
                    },
                    viewFieldName: 'field4',
                    allowEmpty: true,
                    caption: '文本框',
                    itemStyle: 'DEFAULT',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    id: 'field4',
                  },
                ],
                layout: {
                  dir: 'row',
                  layout: 'FLEX',
                },
                dataRegionType: 'INHERIT',
                caption: '容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  colMD: 24,
                  layout: 'TABLE_24COL',
                  spacingBottom: 'INNERMEDIUM',
                },
                id: 'container17',
              },
            ],
            layout: {
              columnCount: 24,
              layout: 'TABLE_24COL',
            },
            dataRegionType: 'INHERIT',
            caption: '面板容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              grow: 4,
              shrink: 1,
              layout: 'SIMPLEFLEX',
            },
            id: 'container14',
          },
          {
            actionGroupExtractMode: 'ITEM',
            layout: {
              columnCount: 24,
              layout: 'TABLE_24COL',
            },
            dataRegionType: 'INHERIT',
            caption: '面板容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              grow: 4,
              shrink: 1,
              layout: 'SIMPLEFLEX',
            },
            id: 'container15',
          },
          {
            actionGroupExtractMode: 'ITEM',
            layout: {
              columnCount: 24,
              layout: 'TABLE_24COL',
            },
            dataRegionType: 'INHERIT',
            caption: '面板容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              grow: 4,
              shrink: 1,
              layout: 'SIMPLEFLEX',
            },
            id: 'container16',
          },
        ],
        predefinedType: 'CONTAINER_GRID',
        layout: {
          layout: 'SIMPLEFLEX',
        },
        dataRegionType: 'INHERIT',
        caption: '栅格容器',
        itemStyle: 'DEFAULT',
        itemType: 'CONTAINER',
        layoutPos: {
          shrink: 1,
          layout: 'FLEX',
        },
        id: 'container_grid1',
      },
    ],
    layoutPanel: true,
    controls: [
      {
        capLanguageRes: {
          lanResTag: 'DE.LNAME.MASTER',
        },
        caption: '面板_事件及调用',
        codeName: 'panel_event_captionbar',
        controlType: 'CAPTIONBAR',
        appDataEntityId: 'web.master',
        controlParam: {},
        name: 'captionbar',
        id: 'panel_event_captionbar',
      },
    ],
    codeName: 'usr0516794680',
    controlType: 'VIEWLAYOUTPANEL',
    logicName: '面板_事件及调用布局面板',
    appDataEntityId: 'web.master',
    controlLogics: [
      {
        eventNames: 'onChange',
        itemName: 'field1',
        logicTag: 'layoutpanel',
        logicType: 'SCRIPT',
        scriptCode:
          "const str = `{field1:${data[0].field1 || \"\\'\\'\"};    field2:${data[0].field2 || \"\\'\\'\"};    field3:${data[0].field3 || \"\\'\\'\"};    field4:${data[0].field4 || \"\\'\\'\"}}`\r\n\r\nibiz.message.info(`field1触发值变更事件，当前项数据：\\n ${data[0].field1 || \"\\'\\'\"}，当前容器数据：${str}`)\r\n\r\nconst _data = {\r\n    field1: data[0].field1 || '',\r\n    field2: data[0].field2 || '',\r\n    field3: data[0].field3 || '',\r\n    field4: data[0].field4 || '',\r\n}\r\n\r\nconsole.log(`field1触发值变更事件，当前项数据： ${_data.field1 || \"\\'\\'\"}，当前容器数据：`,_data)",
        triggerType: 'CTRLEVENT',
        id: 'logic',
      },
      {
        eventNames: 'onFocus',
        itemName: 'field2',
        logicTag: 'layoutpanel',
        logicType: 'SCRIPT',
        scriptCode:
          "const str = `{field1:${data[0].field1 || \"\\'\\'\"};    field2:${data[0].field2 || \"\\'\\'\"};    field3:${data[0].field3 || \"\\'\\'\"};    field4:${data[0].field4 || \"\\'\\'\"}}`\r\n\r\nibiz.message.info(`field2触发聚焦事件，当前项数据：\\n ${data[0].field2 || \"\\'\\'\"}，当前容器数据：${str}`)\r\nconst _data = {\r\n    field1: data[0].field1 || '',\r\n    field2: data[0].field2 || '',\r\n    field3: data[0].field3 || '',\r\n    field4: data[0].field4 || '',\r\n}\r\n\r\nconsole.log(`field2触发聚焦事件，当前项数据： ${_data.field2 || \"\\'\\'\"}，当前容器数据：`,_data)",
        triggerType: 'CTRLEVENT',
        id: 'logic1',
      },
      {
        eventNames: 'onBlur',
        itemName: 'fleld3',
        logicTag: 'layoutpanel',
        logicType: 'SCRIPT',
        scriptCode:
          "const str = `{field1:${data[0].field1 || \"\\'\\'\"};    field2:${data[0].field2 || \"\\'\\'\"};    field3:${data[0].field3 || \"\\'\\'\"};    field4:${data[0].field4 || \"\\'\\'\"}}`\r\n\r\nibiz.message.info(`field3触发失焦事件，当前项数据：\\n ${data[0].field3 || \"\\'\\'\"}，当前容器数据：${str}`)\r\nconst _data = {\r\n    field1: data[0].field1 || '',\r\n    field2: data[0].field2 || '',\r\n    field3: data[0].field3 || '',\r\n    field4: data[0].field4 || '',\r\n}\r\n\r\nconsole.log(`field3触发失焦事件，当前项数据： ${_data.field3 || \"\\'\\'\"}，当前容器数据：`,_data)",
        triggerType: 'CTRLEVENT',
        id: 'logic2',
      },
      {
        eventNames: 'onEnter',
        itemName: 'field4',
        logicTag: 'layoutpanel',
        logicType: 'SCRIPT',
        scriptCode:
          "const str = `{field1:${data[0].field1 || \"\\'\\'\"};    field2:${data[0].field2 || \"\\'\\'\"};    field3:${data[0].field3 || \"\\'\\'\"};    field4:${data[0].field4 || \"\\'\\'\"}}`\r\n\r\nibiz.message.info(`field4触发回车事件，当前项数据：\\n ${data[0].field4 || \"\\'\\'\"}，当前容器数据：${str}`)\r\nconst _data = {\r\n    field1: data[0].field1 || '',\r\n    field2: data[0].field2 || '',\r\n    field3: data[0].field3 || '',\r\n    field4: data[0].field4 || '',\r\n}\r\n\r\nconsole.log(`field4触发回车事件，当前项数据： ${_data.field4 || \"\\'\\'\"}，当前容器数据：`,_data)",
        triggerType: 'CTRLEVENT',
        id: 'logic3',
      },
    ],
    controlParam: {},
    modelId: '1f90bdf7dd874d175e76cd87b6acd621',
    modelType: 'PSSYSVIEWLAYOUTPANEL',
    name: 'layoutpanel',
    id: 'usr0516794680',
  },
  title: '面板_事件及调用',
  viewStyle: 'DEFAULT',
  viewType: 'DECUSTOMVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: 'ca4b3130652fd69a6c551cabf5a0cab9',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERpanel_event',
  id: 'web.master_panel_event',
};
